<%--
  Created by IntelliJ IDEA.
  User: Jeck
  Date: 2010-2-9
  Time: 18:33:48
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <title>diary显示模板</title>
    <style>
      .diary{
        width:100%;
        background: #ccffcc
        /*position:absolute;*/
        /*left:50%;*/
        /*margin-left:50%;*/
      }

      .photo,.photo img{
        float:left;
        width:120px;
        height:150px;
        background: #cccccc;
      }
      .info{
        width:100%;
        height:150px;
      }
      .info table{
        width:100%;
        height:100%
      }
      .info table .name{
        width:100px;
        vertical-align:bottom;
        background: #99cc00;
      }
      .info table .value{
        vertical-align:bottom;
        background: #ccffff;
        border-bottom:1px solid #660000;
      }
      .sp_link{
        border:1px solid #660066;
        width:40px;
        height:16px;
        background-color: #ffffff;
        text-align :center;
        vertical-align :middle;
      }
      frame img{
        width:120;
        height:150px;
      }
    </style>
  </head>
  <body>
    <div class="diary">
       <span class="photo">
         <g:link controller="diary" action="show" id="${diaryInstance.id}">
         <img title="点击我显示${diaryInstance.diaryType.diaryType}【${diaryInstance.diaryName}】的详细信息" id="image${diaryInstance.id}" src="${createLink(controller:"diary", action:"showImage",id:diaryInstance.id)}"/>
         <resource:tooltip />
         <richui:tooltip id="image${diaryInstance.id}"></richui:tooltip>
         </g:link>
       </span>
       <span class="info">
         <table>
           <tr><td class="name">diaryName</td><td class="value"><g:link controller="diaryEntity" action="showDiary" id="${diaryInstance.id}">${fieldValue(bean: diaryInstance, field: "diaryName")}</g:link></td>
               <td rowspan="4">
                 <g:link class="sp_link" controller="diaryEntity" action="create">创建</g:link>
                 <g:link class="sp_link" controller="diaryEntity" action="list">查看此${diaryInstance.diaryType.diaryType}的所有文章</g:link>
                 <br/>
                 <iframe frameborder="0" width="240"  scrolling="no" src="http://www.bijint.com/gadget/gg.html">

                 </iframe>
               </td>
           </tr>
           <tr><td class="name">diaryType</td><td class="value">${diaryInstance.diaryType.diaryType}</td></tr>
           <tr><td class="name">diaryCreatedDate</td><td class="value">${fieldValue(bean: diaryInstance, field: "dateCreated")}</td></tr>
           <tr><td class="name">diaryInfo</td><td class="value">${fieldValue(bean: diaryInstance, field: "diaryInfo")}</td></tr>
         </table>
       </span>
    </div>
  </body>
</html>